from common.config import torqueConfig as Config
# from torqueSrc.tools.loadFile import loadfile, toAttrCsv
from torqueSrc.tools.loadFile import toAttrCsv
from toolsSrc.files.loadFiles import loadfile


# @CleanDecorator.drop_duplicates
# @CleanDecorator.drop_bigorsmall
#@CleanDecorator.drop_dbscan
def hisCleanProcess(X):
    return X


def toCsv():
    columsList = [Config.WindSpeed, Config.ActPower, Config.RotateSpeed]
    X = loadfile(Config.poolRoot, columsList)
    X = X[columsList]
    X.to_csv(Config.onlInitialData, index=False)

def initialData():
    toCsv()
    toAttrCsv(Config.onlInitialData, Config.onlInitialDataAttr)
    print('initialData 完毕................')
    # show3dFig(Config.onlInitialData)
if __name__ == '__main__':

    initialData()